import Home from '../pages/home'
import Login from '../pages/login'

import ProductsAdd from '../pages/home/productsAdd'
import Products from '../pages/home/products'

const routes = [{
	path: '/home',
	component: Home,
	children: [{
		path: '/home/productsAdd',
		component: ProductsAdd,
	},{
		path: '/home/products',
		component: Products,
	}]
},{
	path: '/login',
	component: Login
},{
	from: '/',
	to: '/login'
}]

export default routes